<?php
  return array(
    //Mode config
    'mode'=>'debug',
    //Url config
    'url'=>array(
        'url_path_info' => false         //Whether to use the path_info URL the way
    ),
    'html' => array(  // HTML生成配置
		'enabled' => false, // 开启HTML生成功能
        'safe_check_file_exists' => TRUE, 
        'file_root_name' => 'articles', // 静态文件生成的根目录名称，设置为空则是直接在入口文件的同级目录生成
	),
    //Database config
    'db'=>array(
        'driver' => 'mysqli',
        'host' => '192.140.166.115',
        'login' => 'phoenixfm_cn',
        'password' => '3b7SiXCWSe8B6pyi',
        'database' => 'phoenixfm_cn',
        'prefix' => ''
    ),
    //Smarty config
    'view' => array(
        'enabled' => TRUE,
        'config' =>array(
            'template_dir' => APP_PATH.'/tpl',
            'compile_dir' => APP_PATH.'/tmp',
            'cache_dir' => APP_PATH.'/tmp',
            'left_delimiter' => '<{',
            'right_delimiter' => '}>',
        ),
    ),
    //Extensions
    'ext'=>array(
        'spLog' => array(
            'logsize'   => '10240000',      // 日志文件大小
            'logpath'   => APP_PATH.'/log', // 日志保存目录
            'logprefix' => 'log_',          // 日志文件前缀’
            'mail'      => 'NULL',           // 是否发送日志邮件，
            // 取值"ALL"是全部日志都发送，取值'ERROR', 'WARN','NOTICE','INFO','DEBUG'任意一种是只发送该种日志，取值NULL是不发送日志
            'mailto'    => '', // 发送到的邮件地址
        ),
        'spRedis'=>array(
            'ma'=>array(
                'host'=>'127.0.0.1',
                'port'=>'6379',
                'password'=>'From2020'
            )
        ),
        'smtp'=>array(
            'server'=>'smtp.163.com',
            'port'=>'25',
            'user'=>'lyyliyongyi@163.com',
            'pass'=>'85927196369lyy',
            'emailFrom'=>'lyyliyongyi@163.com',
        ),
        // 百度AI
        'baidu'=>array(
            'apiKey'=>'WAnriBPwo1XfmqDXw8FBv6iq',
            'secretKey'=>'aV5Q0hmCpIZsVhm44kZrGult8ylL89zw',
            'YGKey'=>'Xn9xEpxKe0r2meYO3ZNpaJyT',
            'YGSecretKey'=>'MJzE83E9s2fspgQ2nF9ZKDc5dD2dJUaS',
        ),
    ),
    //Custom Class Path
    'include_path'=>array(
        APP_PATH.'/include'
    ) 
  );
